/**
Copyright (c) 2008 Arnaud Fabre <arnaud333@gmail.com>
Copyright (c) 2008 Pierre "delroth" Bourdon <root@delroth.is-a-geek.org>

This file is part of Vos Tutos Offline.

Vos Tutos Offline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vos Tutos Offline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vos Tutos Offline.  If not, see <http://www.gnu.org/licenses/>.
*/


#include <QApplication>
#include <QTranslator>

#include "mainwindow.h"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);

    QCoreApplication::setOrganizationName("Arnaud Fabre");
    QCoreApplication::setOrganizationDomain("");
    QCoreApplication::setApplicationName("Vos Tutos Offline");

	/* Translator */
    QTranslator qtTranslator;
    qtTranslator.load("qt_" + QLocale::system().name());
    app.installTranslator(&qtTranslator);

    QTranslator vtoTranslator;
    vtoTranslator.load("vos-tutos-offline_" + QLocale::system().name());
    app.installTranslator(&vtoTranslator);
    
    VTOMainWindow mw;
    mw.show();

    return app.exec();
}

